import request from '@/utils/request'
/**
 * 当前用户管理主机系统信息
 */
export function getSystem() {
  return request({
    url: '/system',
    method: 'get'
  })
}

/**
 * 当前用户管理主机系统信息
 */
export function getSystemNum() {
  return request({
    url: 'system/getCategory',
    method: 'get'
  })
}

/**
 * ssh
 */
export function sshLink(ip, username, password) {
  return request({
    url: 'webSsh/page',
    params: {
      ip: ip,
      username: username,
      password: password
    }
  })
}

/**
 * 24h cpu占比
 */
export function getTwentyFour(hostname) {
  return request({
    url: '/monitor/cpuTwentyFour',
    method: 'get',
    params: {
      hostname: hostname
    }
  })
}
